package com.studyspace.utils;

import java.sql.Timestamp;
import java.util.Date;
import java.util.UUID;

/**
 * @Author liujilong
 * @Project study-space
 * @File UniqueIdUtil
 * @Date 2021/11/27 9:16 下午
 **/
public class UniqueIdUtil {

    public static String getUniqueId() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

    public static Timestamp getTime() {
        return new Timestamp(new Date().getTime());
    }
}
